<!DOCTYPE HTML>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

<head th:include="/layout/partials/head (pageTitle=${product.name} + ' - ' + #{pageTitle.title})"></head>

<body>
    <div id="notification_bar"></div>
    <header th:substituteby="layout/partials/header" />

    <nav th:substituteby="layout/partials/nav (cssClass=${product.defaultCategory.url.substring(1)})" />
    <div id="content" class="width_setter group pro_detail" role="main">
        <section id="left_column" th:object="${product}" class="clearfix">
            <div th:substituteby="catalog/partials/product_picShow"></div>
			<th:block th:switch="*{defaultCategory.name}">
                <p th:case="'夺宝'" th:remove="tag"><div th:replace="catalog/partials/treasure_info"></div></p>
                <p th:case="*" th:remove="tag"><div th:replace="catalog/partials/product_info"></div></p>
            </th:block>
        </section>
        <!-- 产品详情 -->
        <div id="detail" class="clearfix">
            <section id="product_detail" th:object="${product}" th:classappend="${product.isCrossSaleProducts()?'':'no-recommend'}">
                <div th:replace="catalog/partials/detail"></div>
            </section>
            <section id="recommend" th:if="${!isMobile and product.isCrossSaleProducts()}">
                <div th:replace="catalog/partials/crossSale"></div>
            </section>
        </div>
    </div>

    <footer th:substituteby="layout/partials/footer" />
	<script th:inline="javascript">
		zhuge.track('浏览商品', 
    		{
				'商品id': [[${product.id}]],
				'商品url':[[${product.url}]],
				'商品名称':[[${product.name}]],
		         '用户ID': [[${customer==null?0:customer.id}]],
		         '用户邮箱':[[${customer==null?'':customer.emailAddress}]]
            });
	</script>
</body>

</html>
